Component({
    data: {
        active: 0,
        icon: {
            normal: 'https://img.yzcdn.cn/vant/user-inactive.png',
            active: 'https://img.yzcdn.cn/vant/user-active.png',
        },
    },
    methods: {
        onChange(event) {
            this.setData({ active: event.detail });
            //更改父组件data中act的值
            this.triggerEvent('updateData', { act: event.detail });
        },

    },
});
